package com.syaccp.controller;

import com.syaccp.request.WithdrawalRequest;
import com.syaccp.service.WithdrawalDetailsService;
import com.syaccp.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(tags = "客户操作")
@RestController
@RequestMapping("/api/withdrawal")
public class WithdrawalDetailsController {


    @Resource
    private WithdrawalDetailsService wds;


    @ApiOperation(value = "客户提现")
    @PostMapping("/withdrawDeposit")
    public Result withdrawDeposit(@RequestBody @Validated WithdrawalRequest withdrawalRequest){
        return wds.withdrawDeposit(withdrawalRequest);
    }
}
